﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Admin_Sysinfo.aspx.cs" Inherits="Xiaov.SmartWeb.Application.SysAdmin.Admin_Sysinfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script>
        $(function () {
                        $('#mask').fadeOut();
            
        });
    </script>
    <script type="text/javascript" src="/Resources/xiaovcn/scripts/usercheck.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <table class="easyui-datagrid"  id="tt"  >  
        <thead>  
           <tr>  
                <th data-options="field:'itemid',width:'200'">名称</th>  
                <th data-options="field:'itemvalue',width:'450'">内容</th>                
            </tr>  
       </thead>  
        <tbody>  
           <tr>  
               <td>计算机名：</td><td>http://<%=HttpContext.Current.Request.Url.Host%> <%=HttpContext.Current.Request.ApplicationPath %></td>
           </tr>  
          <tr>  
                <td>IP地址：</td><td><%= Request.ServerVariables["LOCAl_ADDR"]  %></td>
           </tr>  
           <tr>  
               <td> 域名：</td><td><%= Request.ServerVariables["SERVER_NAME"]%></td>
            </tr>  
           <tr>  
               <td>端口：</td><td><%=Request.ServerVariables["Server_Port"].ToString() %></td>
            </tr>  
          <tr>  
               <td>本站所在路径：</td><td> <%= Request.PhysicalApplicationPath %></td> 
            </tr>  
            <tr>  
               <td>操作系统：</td><td>  <%= Environment.OSVersion.ToString()%></td> 
            </tr>
            <tr>  
               <td>操作系统所在文件夹：</td><td>   <%=Environment.SystemDirectory.ToString() %></td> 
            </tr>
            <tr>  
               <td>脚本超时时间： </td><td>   <%=(Server.ScriptTimeout / 1000).ToString() %> </td> 
            </tr>
            <tr>  
               <td>系统语言： </td><td> <%=System.Globalization.CultureInfo.InstalledUICulture.EnglishName %></td> 
            </tr>
              <tr>  
               <td> .NET版本：  </td><td>  <%= Environment.Version.Major%>.<%=Environment.Version.Minor%>. 

   <%= Environment.Version.Build%>.<%= Environment.Version.Revision%> </td> 
            </tr>
            <tr>  
               <td>IE版本：  </td><td><% Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Internet Explorer\Version Vector"); %>     

       <%=key.GetValue("IE", "未检测到").ToString() %></td> 
            </tr>
             <tr>  
               <td>启动到现在已运行： </td><td>  <%=((Environment.TickCount / 0x3e8) / 60).ToString() %> 分钟</td> 
            </tr>
            <tr>  
               <td>CPU 数量：  </td><td>  <%= Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS").ToString()%></td> 
            </tr>
            <tr>  
               <td>CPU类型： </td><td>  <%=Environment.GetEnvironmentVariable("PROCESSOR_IDENTIFIER").ToString() %> </td> 
            </tr>
            <tr>  
               <td> ASP.NET所占内存：  </td><td> <%=((Double)System.Diagnostics.Process.GetCurrentProcess().WorkingSet64 / 1048576).ToString("N2") %> M </td> 
            </tr>
            <tr>  
               <td> 当前系统用户名： </td><td>    <%=Environment.UserName %> </td> 
            </tr>
             <tr>  
               <td> 目前窗口的的可视高度： </td><td><div id="uh"></div><script>$('#uh').html(userScreenHeight + "px");
                                                                      </script></td> 
            </tr>
       </tbody>  
  </table>  
    <script>
        $('#tt').css('height', userScreenHeight+'px');
    </script>
</asp:Content>
